Instance Variables
The following instance variables are available globally.
-
Container of all the subviews.
Declaration
Swift
public var contentView: UIView
-
This is the front view which can be scaled if
scaleFactor
was configured inElongationConfig
. Also to this view can be applied ‘parallax’ effect.Declaration
Swift
public var scalableView: UIView!
-
The view which comes from behind the cell when you tap on the cell.
Declaration
Swift
public var bottomView: UIView!
-
View on top half of
contentView
. Add here all the views which wont be scaled and must stay on their position.Declaration
Swift
public var topView: UIView!
-
top
constraint ofbottomView
.Declaration
Swift
public var bottomViewTopConstraint: NSLayoutConstraint!
-
Actually this is
expanded
copy ofElongationCell
.Declaration
Swift
open var headerView: ElongationPreview.ElongationHeader!
-
Enable gestures on
ElongationCell
&ElongationHeader
. These gestures will give ability to expand/dismiss the cell and detail view controller. Default value:true
Declaration
Swift
public var isSwipeGesturesEnabled: Bool
-
Duration of
detail
view controller presention animation Default value:0.3
Declaration
Swift
public var detailPresetingDuration: TimeInterval
-
What
elongationCell
should do on touchDeclaration
Swift
public var cellTouchAction: ElongationPreview.ElongationConfig.CellTouchAction
-
Enable
UIPreviewIntearction
onElongationCell
. Default value:true
Declaration
Swift
public var forceTouchPreviewInteractionEnabled: Bool
-
Parallax effect factor. Default value:
nil
Declaration
Swift
public var parallaxFactor: CGFloat?
-
Should we enable parallax effect on ElongationCell (read-only). Will be
true
ifseparator
notnil
&& greater than zeroDeclaration
Swift
public var isParallaxEnabled: Bool { get }
-
Duration of
detail
view controller dismissing animation Default value:0.4
Declaration
Swift
public var detailDismissingDuration: TimeInterval
-
topView
scale value which will be used for making CGAffineTransform toexpanded
state Default value:0.9
Declaration
Swift
public var scaleViewScaleFactor: CGFloat
-
Offset of
bottomView
againsttopView
Default value:20
Declaration
Swift
public var bottomViewOffset: CGFloat
-
Actual height of
topView
. Default value:200
Declaration
Swift
public var topViewHeight: CGFloat
-
bottomView
height value Default value:180
Declaration
Swift
public var bottomViewHeight: CGFloat
-
Color of custom separator Default value:
.white
Declaration
Swift
public var separatorColor: UIColor
-
Should we create custom separator view (read-only). Will be
true
ifseparator
notnil
&& greater than zero.Declaration
Swift
public var customSeparatorEnabled: Bool { get }
-
What
elongationHeader
should do on touchDeclaration
Swift
public var headerTouchAction: ElongationPreview.ElongationConfig.HeaderTouchAction
-
Enable
UILongPressGesture
onElongationCell
. This gesture will allow toexpand
ElongationCell
on long tap. By default, this option will be used on devices without 3D Touch technology. Default value:true
Declaration
Swift
public var longPressGestureEnabled: Bool
-
Height of custom separator line between cells in tableView Default value:
nil
Declaration
Swift
public var separatorHeight: CGFloat?
-
IndexPath
of expanded cell.Declaration
Swift
public var expandedIndexPath: IndexPath?
-
Should cell change it’s state to
expand
on tap. Default value:true
Declaration
Swift
public var shouldExpand: Bool
-
Current view state. Default value:
.normal
Declaration
Swift
public var state: ElongationPreview.ElongationViewController.State { get set }
-
This is the front view which can be scaled if
scaleFactor
was configured inElongationConfig
. Also to this view can be applied ‘parallax’ effect.Declaration
Swift
@IBOutlet public var scalableView: UIView!
-
height
constraint ofbottomView
.Declaration
Swift
@IBOutlet public var bottomViewHeightConstraint: NSLayoutConstraint!
-
View on top half of
contentView
. Add here all the views which wont be scaled and must stay on their position.Declaration
Swift
@IBOutlet public var topView: UIView!
-
top
constraint ofbottomView
.Declaration
Swift
@IBOutlet public var bottomViewTopConstraint: NSLayoutConstraint!
-
Is this cell in
expanded
state.Declaration
Swift
open var isExpanded: Bool
-
The view which comes from behind the cell when you tap on the cell.
Declaration
Swift
@IBOutlet public var bottomView: UIView!
-
height
constraint oftopView
. This constraint will be changed according toElongationConfig
.Declaration
Swift
@IBOutlet public var topViewHeightConstraint: NSLayoutConstraint!
-
centerY
constraint of view, to which must be appliedparallax
effect.Declaration
Swift
@IBOutlet public var parallaxViewCenterConstraint: NSLayoutConstraint!
-
top
constraint oftopView
. This constraint will be changed ifElongationConfig
was configured for using custom separators.Declaration
Swift
@IBOutlet public var topViewTopConstraint: NSLayoutConstraint!
-
height
constraint of view, to which must be appliedparallax
effect.Declaration
Swift
@IBOutlet public var parallaxViewHeightConstraint: NSLayoutConstraint!